<?php if (!isset($v_sval)) 
		exit;

	$loca_type = ( isset($_REQUEST['loca_type']) ? $_REQUEST['loca_type'] : 0);
	$lat = ( isset($_REQUEST['lat']) ? $_REQUEST['lat'] : '');
	$lon = ( isset($_REQUEST['lon']) ? $_REQUEST['lon'] : '');
	$location_title = ( isset($_REQUEST['loca']) ? $_REQUEST['loca'] : '');
	
	if ( checkIsExistsMap($user_id , $loca_type ) ){
		updateMap($user_id , $loca_type, $lat , $lon , $location_title );
	}
	else{
		insertMap($user_id , $loca_type, $lat , $lon , $location_title );
	}
	echo true;

?>

